<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <title>Document</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
</head>
<body>

<div class="container-fluid">
    <div class="text-center">
        <span class="h3">药品盘点</span>
    </div>
    <div class="" style="margin-top: 20px;">
        <div class="pull-right" style="margin-bottom: 5px;">
            <button class="btn btn-success" type="button" onclick="addTakesto()" >添加盘点内容</button>
        </div>
        <form action="${ctx}/stock/addTakestoDrugstock" method="post" id="SubmissionForm" class="form-inline">
            <div class="form-group" style="width: 390px;" >
                <label for="">
                    盘点人员:
                </label>
                <select name="invPers" multiple="multiple" id="invPers" class="form-control" style="width: 200px;">
                    <option value="-1">==请选择==</option>
                </select><span style="color: red;" class="invPersError"></span>
            </div>
            <div class="form-group" style="width: 390px">
                <label for="">
                    盘点时间:
                </label>
                <input type="text" name="invDate" class="form-control" />
                <span style="color:red"></span>
            </div>
            <div class="form-group">
                <label for="">
                    审查人员:
                </label>
                <select name="invAuditper" id="invAuditper" class="form-control" style="width: 200px;">
                    <option value="-1">==请选择==</option>
                </select><span style="color: red;" class="invAditperError"></span>
            </div>
        </form>
            <table class="table table-bordered"
                   id="TakestoTable"
            >
                <thead>
                <tr>
                    <th>药品名称</th>
                    <th>药品批号</th>
                    <th>盘点数量</th>
                    <th>药品类型</th>
                    <th>药品单价</th>
                    <th>总价</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody class="tbody">

                </tbody>
            </table>
            <div class="text-center" style="margin-top: 10px;">
                <button class="btn btn-success" type="button" onclick="Submission()">提交盘点</button>
                <div style="color: red;" id="tijiao"></div>
            </div>

    </div>
</div>
<div id="TakestoAdd" style="display: none">
    <form action="" id="takestoFrom" class="form-inline" style="margin: auto;width: 70%;margin-bottom: 15px;" >
        <div class="form-group" >
            <label for="">
                药品名称:
            </label>
            <select name="drugName" id="jiaDrugNum" class="form-control jiaDrugNum" onchange="changeDrug(this.value)" style="width: 200px;">
                <option value="-1" class="bus">==请选择==</option>
            </select>
                <i style="color: red;">*</i>
                <span class="checkSel" style="color: red;"></span>
        </div>
        <div style="margin-top: 15px;"></div>
        <div class="form-group" style="margin-right: 20px;">
            <label for="">
                药品批号:
            </label>
            <select name="stoLotnum" id="stoLotnum" class="form-control" style="width: 200px;">

            </select>
        </div>
        <div class="form-group">
            <label for="">
                药品数量:
            </label>
            <input type="number" name="stoPcs" class="form-control" />
            <i style="color: red;">*</i>
            <span class="checkSel2" style="color: red;"></span>
        </div>
        <div style="margin-top: 15px;"></div>
        <div>
            <button type="button" onclick="NewlyAdded()" class="layui-btn layui-btn-small">
                <i class="layui-icon">&#xe62f;</i> 导入新增
            </button>
            <button type="button" onclick="Reset()" class="layui-btn layui-btn-small">
                <i class="layui-icon">&#x1002;</i> 重置
            </button>
        </div>
    </form>
    <div style="background: #BDC3C7;height: 1px;margin-bottom: 20px;"></div>
    <table class="table table-bordered"
    >
        <thead>
            <tr>
                <th>药品编号</th>
                <th>药品名称</th>
                <th>药品规格</th>
                <th>药品批号</th>
                <th>药品剂型</th>
                <th>盘点数量</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="info">

        </tbody>
    </table>
</div>
<div id="updateForm" style="display: none">
    <form class="form-horizontal" action="" id="serForm">
        <div class="form-group">
            <label for="" class="col-md-3 control-label">
                药品名称:
            </label>
            <div class="col-md-8">
                <input type="hidden" name="keyId" />
                <input type="text" disabled="disabled" name="drugName" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-md-3 control-label">
                药品批号:
            </label>
            <div class="col-md-8">
                <select name="stoLotnum" id="" class="form-control">

                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-md-3 control-label">
                药品数量:
            </label>
            <div class="col-md-8">
                <input type="number" name="stoPcs" class="form-control">
            </div>
        </div>
    </form>
</div>
<%@include file="/WEB-INF/jsp/footer.jsp"%>
<script src="${ctx}/res/js/takesto.js"></script>
</body>
</html>
